package com.gigi.model;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@ApiModel("请假实体")
@Data
public class AskForLeaveDO {

    private Long id;

    // 学生id
    @NotNull(message = "用户id不能为空")
    private Long userId;

    private String studentName;

    private Long studentNo;

    private String studentClass;

    @NotNull(message = "签到id不能为空")
    private Long signInId;

    @NotNull(message = "类型不能为空")
    private Integer askForType;

    @NotBlank(message = "原因不能为空")
    private String reason;

    private Integer state;

    private String teacherName;

    private Integer type;

    private String typeDesc;

    private String startTimeStr;

    private LocalDateTime startTime;

}
